import time


from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Edge()
driver.get("http://www.baidu.com")
time.sleep(3)
driver.find_element(By.ID,'s-top-left')
aes=driver.find_elements(By.TAG_NAME,'a')
for a in aes:
    print(a.text)
